﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Configuration;

namespace Web.Framework.Config
{
    public class ApiAuthConfigurationSection : ConfigurationSection
    {
        [ConfigurationProperty("SuperAdminName", IsRequired = true)]
        public string SuperAdminName
        {
            get
            {
                return (string)this["SuperAdminName"];
            }
            set
            {
                this["SuperAdminName"] = value;
            }
        }

        [ConfigurationProperty("SuperAdminPassword", IsRequired = true)]
        public string SuperAdminPassword
        {
            get
            {
                return (string)this["SuperAdminPassword"];
            }
            set
            {
                this["SuperAdminPassword"] = value;
            }
        }

        [ConfigurationProperty("ApplicationId", IsRequired = true)]
        public int ApplicationId
        {
            get
            {
                return (int)this["ApplicationId"];
            }
            set
            {
                this["ApplicationId"] = value;
            }
        }
    }
}
